package com.xms.form.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xms.datacore.service.IFinderService;
import com.xms.form.entity.SystemForm;

import java.util.List;
import java.util.UUID;

/**
 * <p>
 * ISystemformFinderService
 * </p>
 *
 * @author migo
 * @since 2021/9/3
 */
public interface ISystemFormFinderService extends IFinderService<SystemForm> {

    SystemForm getDefaultForm(UUID entityId);

    SystemForm getDefaultForm(String entityName);

    List<SystemForm> getByEntityId(UUID entityId);

    List<SystemForm> getByEntityName(String entityName);

    List<SystemForm> getAuthorizedByEntityId(UUID entityId);

    List<SystemForm> getAuthorizedByEntityName(String entityName);

    List<SystemForm> getAuthorized(LambdaQueryWrapper<SystemForm> queryWrapper);

    List<SystemForm> getAuthorizations();
}
